#ifndef LOADINGDIALOG_H
#define LOADINGDIALOG_H
#include "ui_LoadingDialog.h"
#include "loadingthread.h"
namespace Ui {

    class Dialog;
}

class LoadingDialog : public QDialog {
    Q_OBJECT

public:
    LoadingDialog(QDialog *parent = 0);
    ~LoadingDialog();
    void load(vCardHash*, QByteArray, QMobex*);

public slots:
    void setTotal(int total);
    void setValue(int value);
    void setText(QString);

private:
    Ui::Dialog *ui;
    LoadingThread *lt;
private slots:
    void resetDialog();

};
#endif // LOADINGDIALOG_H
